package com.work.demo.utils;

/**
 * @author xuanyun
 */
public class CryptoConst {

    // 算法类型 ALGO_xxx

    public static final String ALGO_AES = "AES";
    public static final String ALGO_RSA = "RSA";
    public static final String ALGO_EC = "EC";

    // 加密类型 ENC_xxx

    public static final String ENC_AES_GCM = "AES/GCM/NoPadding";

    // 签名类型 SIG_xxx

    public static final String SIG_SHA256_RSA = "SHA256withRSA";
    public static final String SIG_SHA256_ECDSA = "SHA256withECDSA";
    public static final String SIG_SM3_SM2 = "SM3withSM2";

    // 证书类型 CERT_xxx

    public static final String CERT_X509 = "X.509";

    // 密钥编码类型 KE_xxx

    public static final String KE_UTF8 = "UTF8";
    public static final String KE_BASE64 = "BASE64";

}
